package com.quick.framework.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * token 参数
 *
 * @Author: Administrator
 * @Date: 2023/7/27
 **/
@Configuration
@ConfigurationProperties(prefix = "token")
@Data
public class TokenProperties {
    /**
     * 令牌自定义标识
     */
    private String header = "Authorization";
    /**
     * 令牌密钥
     */
    private String secret = "abcdefghijklmnopqrstuvwxyz";
    /**
     * 令牌有效期（默认30分钟）
     */
    private int expireTime = 30;
}
